﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Model;
using WoChu.Infrastructure.Web;
using Public;

namespace MvcAppWeb.Controllers
{
    public class HomeController : BaseDataController
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {            
            AppUserList model = (AppUserList)Session["UserInfo"];
            if (model.USERCODE == "system")
            {
                ViewData["NInSCI"] = "nodisp";
            }
            else
            {
                ViewData["NInSCI"] = "disp";
            }
            ViewBag.IsWXY = WebConfigKey.IsWXY;
            return View(model);
        }

        public ActionResult Welcome()
        {
            
            AppUserList model = (AppUserList)Session["UserInfo"];
            return View(model);

        }

    }
}
